package model;

public class WarriorAttributes implements Attributes {
	
	Attributes attr;
	private Double def;
	private Double maxHp;
	private Double str;
	private Double hp;
	
	public WarriorAttributes() {
		super();
	}

	@Override
	public Double getMaxHp() {
		return this.maxHp;
	}

	@Override
	public Double getHp() {
		return this.hp;
	}

	@Override
	public Double getStr() {
		return this.str;
	}

	@Override
	public Double getDef() {
		return this.def;
	}

	@Override
	public void setHp(Double hp) {
		this.hp = hp;
	}

	@Override
	public void setStr(Double str) {
		this.str = str * 1.25;
	}

	@Override
	public void setDef(Double def) {
		this.def = def * 1.5;
	}

	@Override
	public void setMaxHp(Double maxHp) {
		this.maxHp = maxHp * 1.7;
	}

	public void setBaseAttr(Attributes baseAttrs) {		
		this.attr = baseAttrs;
		this.setDef(baseAttrs.getDef());
		this.setMaxHp(baseAttrs.getMaxHp());
		this.setStr(baseAttrs.getStr());
	}

}
